package my.service;

import java.sql.SQLException;
import java.util.List;

import my.bean.Goods;

/**
 * 业务逻辑层 
 * 在此暂时与数据访问层方法基本一致
 * 暂时增加事务管理
 * @author slim
 *
 */
public interface IGoodsService {

	int add(Goods good) throws SQLException;

	void addGoodList(List<Goods> goods) throws SQLException;

	int deleteByGoodId(int gid) throws SQLException;

	int modify(Goods good) throws SQLException;

	List<Goods> findAll();

	List<Goods> findByType(int type);

	Goods findByGoodId(int gid);

}
